package com.woniuxy01;

public class Test10 {
    public static void main(String[] args) {
        int a=1,b=2,t;
        System.out.println("交换前:a="+a+",b="+b);
//        t=a;
//        a=b;
//        b=t;
        t=b;
        b=a;
        a=t;
        System.out.println("交换后:a="+a+",b="+b);
    }
}
